package com.whcoding.mongodb.repository;


import com.whcoding.mongodb.entity.ArticleEntity;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 *
 * @author whcoding
 */
public interface ArticleRepository extends MongoRepository<ArticleEntity, Long> {
    /**
     * 根据标题模糊查询
     *
     * @param title 标题
     * @return 满足条件的文章列表
     */
    List<ArticleEntity> findByTitleLike(String title);
}
